<?php

namespace App\Models;

use App\Library\Models\Entity;
use App\Library\Traits\Orm\CouponOrmTrait;
use Illuminate\Database\Eloquent\SoftDeletes;

class CouponModel extends Entity
{
    use SoftDeletes, CouponOrmTrait;

    protected $table = 'coupon';
    
    protected $fillable = [
        'id',
        'serial_number',
        'title',
        'status',
        'amount',
        'full_amount',
        'start_at',
        'end_at',
        'quantity',
        'get_count',
        'receive_count',
        'use_count',
        'get_condition',
        'send_start_at',
        'send_end_at',
        'send_complete_at',
        'is_system',
        'sort',
        'created_at',
        'updated_at',
        'deleted_at'
    ];
}
